1 00:00:01,530 --> 00:00:01,980 All right. 2 00:00:01,980 --> 00:00:05,460 In this video, I want to show you something very cool in robotics. 3 00:00:05,760 --> 00:00:09,360 This is a very interesting instance and it's called Highlight. 4 00:00:09,750 --> 00:00:15,660 And it basically allows us to add a border like a outline around our part that's highlighted. 5 00:00:15,990 --> 00:00:18,420 And you can actually see this border through other parts. 6 00:00:18,420 --> 00:00:22,020 Like if I were to look at this part through the base plate, you can't see it. 7 00:00:22,020 --> 00:00:26,490 But if I were to add a highlight around it, then I would be able to see it through this base plate. 8 00:00:26,670 --> 00:00:28,290 So let's show that real quick. 9 00:00:28,410 --> 00:00:30,930 I'll add a highlight into my object. 10 00:00:30,930 --> 00:00:32,090 Looking for a highlight. 11 00:00:32,100 --> 00:00:32,850 There it is. 12 00:00:33,330 --> 00:00:36,990 And now, as you can see, this white border appears around my object. 13 00:00:36,990 --> 00:00:39,870 And of course, it shifts as I look around my object. 14 00:00:39,870 --> 00:00:46,260 So you can see how this border dynamically changes to follow the edges of my object, which is pretty 15 00:00:46,260 --> 00:00:46,680 cool. 16 00:00:46,680 --> 00:00:51,490 So I can go back up and see how this border is just changing, right? 17 00:00:51,510 --> 00:00:56,430 Like, here's this line here and then I get out of view of it and then it switches to the other edge 18 00:00:56,430 --> 00:00:57,210 of the part. 19 00:00:57,600 --> 00:00:58,740 Very, very cool. 20 00:01:00,380 --> 00:01:02,930 There are several properties we can mess with in here. 21 00:01:02,930 --> 00:01:07,280 So right now this fill color is set to red, but I can set it to white. 22 00:01:08,120 --> 00:01:12,710 And then I can change the transparency of this filled in color to be fully transparent. 23 00:01:12,710 --> 00:01:16,920 So we only see the color of our part, but we get to see the outline around it. 24 00:01:16,940 --> 00:01:22,460 And if I were to go through my base plate here, you're actually able to see this outline right through 25 00:01:22,460 --> 00:01:22,970 the map. 26 00:01:22,970 --> 00:01:25,340 And you can see this as far away as you want. 27 00:01:27,030 --> 00:01:30,210 I can also change the transparency of this outline right here. 28 00:01:30,330 --> 00:01:34,500 I can make it fully transparent and instead only have the fill. 29 00:01:35,380 --> 00:01:40,120 So that way, when I look through the map, you only see this fill on my object. 30 00:01:41,040 --> 00:01:42,150 Which is pretty cool. 31 00:01:43,540 --> 00:01:45,640 Or I can make it mostly transparent. 32 00:01:45,640 --> 00:01:47,890 But if I still look through the four of my map. 33 00:01:48,710 --> 00:01:51,830 You can see this ghostly outline of my object. 34 00:01:52,370 --> 00:01:56,750 And of course, we have the ability to change the color of our outline as well. 35 00:01:57,820 --> 00:02:01,010 So maybe I want my color to be like a green outline. 36 00:02:01,030 --> 00:02:03,610 Let me make it completely opaque. 37 00:02:04,360 --> 00:02:09,130 And now we have this cool green outline around our part that, of course, we can see through other 38 00:02:09,130 --> 00:02:09,940 objects. 39 00:02:11,100 --> 00:02:14,640 Now, if you don't want to see this outline through other objects or you don't want to see the fill 40 00:02:14,640 --> 00:02:18,780 through other objects, you can change the depth mode to be occluded. 41 00:02:19,410 --> 00:02:23,400 So that means if I were to put a part in here, just put a part on top. 42 00:02:25,030 --> 00:02:28,570 I will no longer be able to see the part through this part here. 43 00:02:29,080 --> 00:02:35,650 I can no longer see the outline, but I can see that the outline is still there and it independently 44 00:02:35,650 --> 00:02:37,930 updates every time I rotate. 45 00:02:38,440 --> 00:02:44,440 So you can see how it follows my camera and it applies this outline around the edge of this part and 46 00:02:44,440 --> 00:02:47,290 it continues to update it as I look around the part. 47 00:02:47,320 --> 00:02:48,970 It's very, very cool. 48 00:02:49,270 --> 00:02:53,800 Now, you might notice this other property in my highlight, and it's called Adorning. 49 00:02:54,010 --> 00:02:59,270 And basically this allows me to select a part that I want the highlight to be applied to. 50 00:02:59,290 --> 00:03:06,550 So if I apply it to this part, you can see that even though this highlight is a child of this part, 51 00:03:06,550 --> 00:03:09,460 I have changed the adorn e to be this part. 52 00:03:09,820 --> 00:03:15,250 And this basically allows you to store these highlights wherever you like and be able to independently 53 00:03:15,250 --> 00:03:18,550 select which parts have the highlight like this one instead. 54 00:03:19,400 --> 00:03:26,570 Or if I don't define an adoring E and I just leave it blank, then it'll just default to highlighting 55 00:03:26,570 --> 00:03:28,130 whatever it's parented to. 56 00:03:28,460 --> 00:03:30,720 So that's basically the whole idea with highlights. 57 00:03:30,740 --> 00:03:33,470 There are several instances where you could use them in your game. 58 00:03:33,620 --> 00:03:39,160 For example, let's say you have a zombie game, a zombie wave game, wink, wink. 59 00:03:39,170 --> 00:03:40,770 That's called foreshadowing. 60 00:03:40,790 --> 00:03:45,380 And let's say they have to kill one more zombie, but nobody in the game knows exactly where that zombie 61 00:03:45,380 --> 00:03:45,650 is at. 62 00:03:45,650 --> 00:03:46,850 They can't find it on the map. 63 00:03:46,850 --> 00:03:51,440 So you can apply a highlight on the parts of the zombie once they reach a certain time threshold. 64 00:03:51,440 --> 00:03:54,740 So that way everyone in the game knows exactly where the zombie is at. 65 00:03:55,250 --> 00:03:57,980 So that's kind of it for highlights in this video.